<template>
  <div class="swiper">
    <swiper :options="swiperOption">
    <swiper-slide  v-for="item of list" :key="item.id">
      <img class="swiper-img" :src="item.imgUrl" alt="">
    </swiper-slide>
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
  </div>
</template>

<script>
export default {
    name:"HomeSwiper",
    props:{
      list:Array
    },
    data () {
      return{
        swiperOption:{
          pagination: '.swiper-pagination',
          loop: true
        }
      }
    }
}
</script>
<style>
.swiper{
  width: 100%;
  border-bottom: .1rem solid #ccc;
}
.swiper-img{
  width: 100%;
}
</style>